// 1. 引入模块
import Vue from "vue";
import Vuex from "vuex";
import home from "./modules/home";
import search from "./modules/search";
import detail from "./modules/detail";
import user from "./modules/user";
import trade from "./modules/trade";
// import { reqGetBannerListData, reqGetBaseCategoryList } from "@/api/index";
// 2. 注册模块
Vue.use(Vuex);

// 3. 创建实例对象
const store = new Vuex.Store({
  // state,
  // actions,
  // mutations,
  // getters,
  modules: { home, search, detail, user, trade },
});

// 4. 导出对象
export default store;
